#pragma once
#include "qtimer.h"
#include <functional>

class Clock :
	public QTimer
{
public:
	Clock(int nMsTimeOut);

	~Clock();

	void Init();

	void SetClockCb(std::function<void(void)> fun){ m_func = fun; }

	void OnTimeout();

private:
	std::function<void(void)> m_func;
};

